﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="GalleryViewControl.ascx.cs" Inherits="Photography.Controls.GalleryView.GalleryViewControl" %>
<ul id="<%=ClientID %>list">
    <asp:Repeater ID="rptImages" runat="server">
        <ItemTemplate>
            <li>
                <img src="<%# DataBinder.Eval(Container.DataItem, SourceField) %>" alt="<%# string.IsNullOrEmpty(TitleField) ? "" : DataBinder.Eval(Container.DataItem, TitleField) %>" />
                <div class="gv-panel-overlay">
                    <h2><%# string.IsNullOrEmpty(TitleField) ? "" : DataBinder.Eval(Container.DataItem, TitleField)%></h2>
                    <p><%# string.IsNullOrEmpty(DescriptionField) ? "" : DataBinder.Eval(Container.DataItem, DescriptionField)%></p>
                </div>
            </li>
        </ItemTemplate>
    </asp:Repeater>
</ul>
